package cn.jiyun.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Fay
 * @date 2022/6/20&10:38
 */
@RestController
public class HelloWordController {
    @GetMapping("/helloWord")
    public Map<String,Object> helloWord(){
        HashMap <String,Object> map = new HashMap();
        map.put("name","张三");
        map.put("age",15);
        map.put("sex","男");
        return map;
    }
}
